package com.dimples.dd.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dimples.dd.tenant.core.dataobject.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 短信渠道
 */
@Schema(description = "短信渠道")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "system_sms_channel")
public class SystemSmsChannelDO extends TenantBaseDO {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "编号")
    private Long id;

    /**
     * 短信签名
     */
    @TableField(value = "signature")
    @Schema(description = "短信签名")
    private String signature;

    /**
     * 渠道编码
     * <p>
     * 枚举 {@link com.dimples.dd.system.framework.sms.core.enums.SmsChannelEnum}
     */
    @TableField(value = "code")
    @Schema(description = "渠道编码")
    private String code;

    /**
     * 启用状态
     * <p>
     * 枚举 {@link com.dimples.dd.common.enums.CommonStatusEnum}
     */
    @TableField(value = "`status`")
    @Schema(description = "开启状态")
    private Integer status;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;

    /**
     * 短信 API 的账号
     */
    @TableField(value = "api_key")
    @Schema(description = "短信 API 的账号")
    private String apiKey;

    /**
     * 短信 API 的秘钥
     */
    @TableField(value = "api_secret")
    @Schema(description = "短信 API 的秘钥")
    private String apiSecret;

    /**
     * 短信发送回调 URL
     */
    @TableField(value = "callback_url")
    @Schema(description = "短信发送回调 URL")
    private String callbackUrl;
}